package io.bdmc.core.msp2000;

import lombok.Data;

@Data
public class SetMsgResponse {
   public int slotNum;
   public int slotLen;
   public String sn;
   public String res;
   public String cmdNum;
   public int cmdLen;

   public String cmdData;

   public boolean isLightModeOK() {
      return cmdData.startsWith("21", 8);
   }

   public boolean isFecSetOK() {
      return cmdData.subSequence(0, 12).equals("0EE00D001010");
   }

   public boolean isOswSetOK() {
      return cmdData.startsWith("92", 10);
   }
}